package com.huabo.system.service.impl;

import com.huabo.system.mysql.entity.TblFlowIOuterruleMySql;
import com.huabo.system.mysql.mapper.TblFlowIOuterruleMySqlMapper;
import com.huabo.system.oracle.entity.TblFlowIOuterrule;
import com.huabo.system.oracle.mapper.TblFlowIOuterruleMapper;
import com.huabo.system.service.TblFlowIOuterruleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class TblFlowIOuterruleServiceImpl implements TblFlowIOuterruleService {

    @Resource
    private TblFlowIOuterruleMapper tblFlowIOuterruleMapper;

    @Resource
    private TblFlowIOuterruleMySqlMapper tblFlowIOuterruleMySqlMapper;

    @Override
    public void saveTblFlowInnerRule(TblFlowIOuterrule inner) {
        tblFlowIOuterruleMapper.insertinner(inner);
    }

    @Override
    public void saveMySqlTblFlowInnerRule(TblFlowIOuterruleMySql innerMySql) {
        tblFlowIOuterruleMySqlMapper.insertinner(innerMySql);
    }

    @Override
    public void delteTblFlowInnerRule(TblFlowIOuterrule outer) {
        tblFlowIOuterruleMapper.delteTblFlowInnerRule(outer);
    }

    @Override
    public void delteMySqlTblFlowInnerRule(TblFlowIOuterruleMySql outerMySql) {
        tblFlowIOuterruleMySqlMapper.delteTblFlowInnerRule(outerMySql);
    }
}
